
<!DOCTYPE html>
<html>

<head>
    <meta name="layout" content="main2"/>
    <g:set var="entityName" value="${message(code: 'securityProfileItem.label', default: 'securityProfileItem')}"/>
    <title>新增授权项</title>
</head>

<body>

<div class="main-body">
    <div class="page-wrapper">
        <!-- Page-header start -->
        <div class="page-header">
            <div class="page-header-title">
                <h4>新增授权项</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <g:link controller="securityProfile" action="show"
                                id="${this.securityProfileItem?.profile?.id}">安全配置文件</g:link>
                    </li>
                    <li class="breadcrumb-item"><a href="#!">授权项</a>
                    </li>
                </ul>
            </div>
        </div>
        <!-- Page-header end -->
        <!-- Page-body start -->
        <div class="page-body">
            <g:if test="${flash.message}">
                <div class="message alert alert-info" role="status">${flash.message}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                            aria-hidden="true">×</span></button>
                </div>
            </g:if>
            <g:hasErrors bean="${this.securityProfileItem}">
                <ul class="errors" role="alert">
                    <g:eachError bean="${this.securityProfileItem}" var="error">
                        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
                            <g:message error="${error}"/>
                        </li>
                    </g:eachError>
                </ul>
            </g:hasErrors>
        <!-- Hover table card start -->
            <div class="card">
                <div class="card-header">
                    <h5>授权项</h5>

                    <div class="card-header-right">
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>

                <div class="card-block">
                    <g:form action="save" class="form-horizontal">

                        <div class="form-group row">
                            <label class="col-md-3 control-label is-required">名称</label>

                            <div class="col-md-4">
                                <g:textField name="name" value="${this.securityProfileItem?.name}"
                                             class="form-control"/>
                            </div>
                        </div>


                        <div class="form-group row">
                            <g:textField name="profile.id" id="profile" value="${this.securityProfileItem?.profile?.id}"
                                         class="hide"/>
                            <label class="col-md-3 control-label is-required">控制器名</label>

                            <div class="col-md-4">
                                <g:textField name="controllerName" value="${this.securityProfileItem?.controllerName}"
                                             class="form-control"/>
                            </div>
                        </div>


                        <div class="form-group row">
                            <label class="col-md-3 control-label is-required">方法名</label>

                            <div class="col-md-4">
                                <g:textField name="actionName" value="${this.securityProfileItem?.actionName}"
                                             class="form-control"/>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-md-3 col-form-label">是否启用</label>
                            <div class="col-md-4 border-checkbox-section">
                                <div class="border-checkbox-group border-checkbox-group-primary form-control-static">
                                    <g:checkBox class="border-checkbox" name="active" id="checkbox0"
                                                value="${this.securityProfileItem?.active}"/>
                                    <label class="border-checkbox-label" for="checkbox0"></label>
                                </div>

                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-md-3 control-label">描述</label>
                            <div class="col-md-4">
                                <g:textArea rows="3" name="description" value="${this.securityProfileItem?.description}" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-md-12">
                                <g:submitButton class="btn btn-info" name="create" value="保存"/>
                            </div>
                        </div>
                    </g:form>

                </div>
            </div>
            <!-- Hover table card end -->
        </div>

        <!-- Page-body end -->

    </div>
</div>

</body>

</html>




